Reading 9 : Recurrences
نویسنده
چکیده
In the last few readings we dealt with program correctness. We discussed correctness of nonrecursive as well as of recursive algorithms. In both cases, the proofs of correctness went by induction. As part of a proof of correctness, we show that the algorithm terminates. For example, we prove that a certain loop has to terminate after some number of iterations, or that the longest chain of recursive calls is finite. In practice, we usually want to know more than that an algorithm terminates. We want it to terminate in a reasonable amount of time. Thus, we want to prove termination in a stronger sense. We not only want to know that the algorithm terminates, but we also want to quantify how fast it terminates. This brings us to the question of program efficiency. In this reading, we use recurrences to argue efficiency of programs.
منابع مشابه
Clinical and Healthcare Burden of Multiple Recurrences of Clostridium difficile Infection.
BACKGROUND Clostridium difficile infection (CDI) is associated with a high risk of recurrence (rCDI). Few studies have focused on multiple recurrences. To evaluate the potential of novel treatments targeting recurrence, we assessed the burden and severity of rCDI. METHODS This was a retrospective cohort of adults diagnosed with CDI in a hospital in Sherbrooke, Canada (1998-2013). An rCDI epis...
متن کاملHerpes simplex keratitis in children.
Ophthalmic findings are reported in 31 eyes of 28 children with herpes simplex keratitis. Twenty two had dendritic ulcers, and nine had geographic ulcers or disciform stromal keratitis. After resolution of keratitis, 80% (19/22) of children with dendritic ulcers achieved corrected visual acuity of 6/9 or better, 50% (11/22) had induced astigmatism, 45% (9/22) had one to five recurrences. In the...
متن کاملSpanning Trees in Grid Graphs
X iv :0 80 9. 25 51 v1 [ m at h. C O ] 1 5 Se p 20 08 Spanning Trees in Grid Graphs Paul Raff July 25, 2008 Abstract A general method is obtained for finding recurrences involving the number of spanning trees of grid graphs, obtained by taking the graph product of an arbitrary graph and path or cycle. The results in this paper extend the work by Desjarlais and Molina and give concrete methods f...
متن کاملThe Impact of Motivation on Reading Comprehension
Motivation is one of the important factors which impacts greatly on language learning. One of the most important factors which receives the special focus in foreign language teaching is reading motivation. More recently, studies on reading motivation have also gained much interest. This review paper is going to consider the impact of reading motivation on reading comprehension. In this paper, t...
متن کاملRecurrence of acute disseminated encephalomyelitis at the previously affected brain site.
BACKGROUND Acute disseminated encephalomyelitis (ADEM) is a usually monophasic demyelinating disorder of the central nervous system. Recurrences pose a diagnostic challenge because they can be overlooked or suggest an alternative diagnosis. OBJECTIVE To examine the frequency, nature, and outcome of recurrent ADEM. DESIGN Review of the medical records of patients diagnosed in our institution...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2015